package com.ipet.web;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.ipet.web.pojo.User;

@FeignClient("ipet-manage")
public interface TestClient {

	/**
	 * 这里的调用一定要和提供服务方的控制器上的链接对应
	 * @param name
	 * @return
	 */
	@RequestMapping(method=RequestMethod.GET, value="/hello/{name}")
	String hello(@PathVariable("name") String name);
	
	@RequestMapping(value="/user/{id}", method = RequestMethod.GET)
	public User getUser(@PathVariable("id") Integer id);
}
